﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace SqlFormatter
{
    public partial class SplaceScreen : Form
    {
       
        public bool IsTrue { get; set; }

        public SplaceScreen()
        {
            InitializeComponent();
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void SplaceScreen_Load(object sender, EventArgs e)
        {
            progressBar1.Show();           
        }

        private void timer1_Tick(object sender, EventArgs e)
        { 
            this.Hide();
            if (IsTrue)
            {
                MainForm m = new MainForm();
                m.Show();
                timer1.Enabled = false;
            }
        }
    }
}
